import Cookies from 'js-cookie'

const useI18NStore = defineStore(
    'i18n',
    {
        state: () => ({
            language: Cookies.get('language')
        }),
        actions: {
            setLanguage(language){
                this.language = language
                Cookies.set('language', language)
            }
        },
    }
)
export default useI18NStore
